{php include pubTemplate("header")}
<div class="container">



<div class="row">
  <div class="col-md-3"></div>
  <div class="col-md-6">



      <div class="card">
          <div class="card-body" style="padding: 15px 30px 30px;">





            <div class="d-flex justify-content-between align-items-center">
                <div class="fs24">Email重置密码</div>
            </div>

            <hr />
            

             

              <form id="comm-form" method="post" action="{SITE_URL}index.php?app=user&ac=forgetpwd&ts=do" role="form">

                  <div class="form-group">
                      <label>Email邮箱：</label>
                      <input id="myemail" name="email" type="email" class="form-control" value="" autocomplete="off" placeholder="请输入你的Email账号">
                  </div>

                  
                  <div class="form-group">
                    <label>图形验证码：</label>
                    <div style="overflow: hidden;">
                        <input id="authcode" style="float: left;width:50%;" name="authcode" type="text" class="form-control" placeholder="请输入右侧图形验证码">
                        <img src="{SITE_URL}index.php?app=pubs&ac=code" onclick="javascript:newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="float:right;cursor:pointer;" />
                    </div>
                </div>

                
                <div class="form-group">
                    <label>Email邮箱验证码：</label>
                    <div style="overflow: hidden;">
                        <input style="float: left;width:60%;" name="emailcode" type="text" class="form-control" placeholder="" >
                        <button id="mybtn" type="button" class="btn btn-outline-secondary" style="float: right;">获取验证码</button>
                    </div>
                    <div class="fs12 text-danger">获取验证码后请登录邮箱查看验证码</div>
                </div>

                


                <div class="form-group">
                    <label>新密码：</label>
                    <input name="pwd" type="password" class="form-control" placeholder="输入新密码" check-type="required">
                </div>


                  <div class="form-group">
                      <input type="hidden" name="token" value="{$_SESSION['token']}" />
                      <button type="submit" class="btn btn-sm btn-info">重置密码</button>
                  </div>

              </form>

            


              




          </div>
      </div>







  
  
  </div>
 <div class="col-md-3"></div>
</div>



</div>

<script>
    $("#mybtn").on("click", function () {
        var email = $("#myemail").val();
        var authcode = $("#authcode").val();
    
        if(email && authcode){
            sendEmailCode(2)
        }else{
            tsNotice('Email和图形验证码必须填写！');
        }
    });
</script>

{php include pubTemplate("footer")}